package com.hxqh.bo.bean;

import java.util.Date;

import javax.persistence.Transient;

/**
 * FpsTradeLog entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class FpsTradeLog implements java.io.Serializable {

	// Fields

	private Long policyOrderNo;
	private Integer policyId;
	private Date tradeDate;
	private String futuresCode;
	private Integer tradeNum;
	private Double tradePrice;
	private Double tradeDateKey;
	private Integer sell;
	private Integer direction;
	private String policyName;
	
	@Transient
	private Integer automatic;

	// Constructors

	/** default constructor */
	public FpsTradeLog() {
	}

	/** minimal constructor */
	public FpsTradeLog(Long policyOrderNo, Integer policyId) {
		this.policyOrderNo = policyOrderNo;
		this.policyId = policyId;
	}

	/** full constructor */
	public FpsTradeLog(Long policyOrderNo, Integer policyId, Date tradeDate,
			String futuresCode, Integer tradeNum, Double tradePrice,
			Double tradeDateKey, Integer sell, Integer direction,
			String policyName) {
		this.policyOrderNo = policyOrderNo;
		this.policyId = policyId;
		this.tradeDate = tradeDate;
		this.futuresCode = futuresCode;
		this.tradeNum = tradeNum;
		this.tradePrice = tradePrice;
		this.tradeDateKey = tradeDateKey;
		this.sell = sell;
		this.direction = direction;
		this.policyName = policyName;
	}

	// Property accessors

	public Long getPolicyOrderNo() {
		return this.policyOrderNo;
	}

	public void setPolicyOrderNo(Long policyOrderNo) {
		this.policyOrderNo = policyOrderNo;
	}

	public Integer getPolicyId() {
		return this.policyId;
	}

	public void setPolicyId(Integer policyId) {
		this.policyId = policyId;
	}

	public Date getTradeDate() {
		return this.tradeDate;
	}

	public void setTradeDate(Date tradeDate) {
		this.tradeDate = tradeDate;
	}

	public String getFuturesCode() {
		return this.futuresCode;
	}

	public void setFuturesCode(String futuresCode) {
		this.futuresCode = futuresCode;
	}

	public Integer getTradeNum() {
		return this.tradeNum;
	}

	public void setTradeNum(Integer tradeNum) {
		this.tradeNum = tradeNum;
	}

	public Double getTradePrice() {
		return this.tradePrice;
	}

	public void setTradePrice(Double tradePrice) {
		this.tradePrice = tradePrice;
	}

	public Double getTradeDateKey() {
		return this.tradeDateKey;
	}

	public void setTradeDateKey(Double tradeDateKey) {
		this.tradeDateKey = tradeDateKey;
	}

	public Integer getSell() {
		return this.sell;
	}

	public void setSell(Integer sell) {
		this.sell = sell;
	}

	public Integer getDirection() {
		return this.direction;
	}

	public void setDirection(Integer direction) {
		this.direction = direction;
	}

	public String getPolicyName() {
		return this.policyName;
	}

	public void setPolicyName(String policyName) {
		this.policyName = policyName;
	}

	@Transient
	public Integer getAutomatic() {
		return automatic;
	}

	@Transient
	public void setAutomatic(Integer automatic) {
		this.automatic = automatic;
	}

}